package com.qhit.service.impl;


import com.qhit.dao.OrderMapper;
import com.qhit.dao.TouristMapper;
import com.qhit.pojo.Order;
import com.qhit.pojo.Tourist;
import com.qhit.service.OrderService;
import com.qhit.service.TouristService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class TouristServiceImpl implements TouristService {
    @Autowired
    private TouristMapper touristMapper;


    @Override
    public List<Tourist> getList(HashMap hashMap) {
        return touristMapper.getList(hashMap);
    }

    @Override
    public List<Tourist> getList2() {
        return touristMapper.getList2();
    }

    @Override
    public Long getListCount(HashMap hashMap) {
        return touristMapper.getListCount(hashMap);
    }

    @Override
    public int add(Tourist tourist) {
        return touristMapper.add(tourist);
    }

    @Override
    public Tourist getTouristById(String id) {
        return touristMapper.getTouristById(id);
    }

    @Override
    public int edit(Tourist tourist) {
        return touristMapper.edit(tourist);
    }

    @Override
    public int delete(String id) {
        return touristMapper.delete(id);
    }


}
